package Events.gui;

import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JMenuBar;
import javax.swing.JMenu;
import javax.swing.JMenuItem;
import javax.swing.JLabel;
import javax.swing.SwingConstants;
import javax.swing.JRadioButton;
import javax.swing.JButton;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;

public class setupSpaceship extends JFrame {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private JPanel contentPane;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					setupSpaceship frame = new setupSpaceship();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public setupSpaceship() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 550, 400);
		
		JMenuBar menuBar = new JMenuBar();
		setJMenuBar(menuBar);
		
		JMenu mnFile = new JMenu("File");
		menuBar.add(mnFile);
		
		JMenuItem mntmNewGame = new JMenuItem("New Game");
		mnFile.add(mntmNewGame);
		
		JMenuItem mntmExit = new JMenuItem("Exit ");
		mnFile.add(mntmExit);
		
		JMenu mnHelp = new JMenu("Help");
		menuBar.add(mnHelp);
		
		JMenuItem mntmHelpContents = new JMenuItem("Help Contents");
		mnHelp.add(mntmHelpContents);
		
		JMenuItem mntmAboutOrbitalTrail = new JMenuItem("About Orbital Trail");
		mnHelp.add(mntmAboutOrbitalTrail);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JLabel lblSelectSpaceshipOptions = new JLabel("Select Spaceship Options");
		lblSelectSpaceshipOptions.setHorizontalAlignment(SwingConstants.CENTER);
		lblSelectSpaceshipOptions.setBounds(112, 11, 298, 14);
		contentPane.add(lblSelectSpaceshipOptions);
		
		JRadioButton rdbtnRatios = new JRadioButton("Eat Poorly");
		rdbtnRatios.setBounds(123, 76, 109, 23);
		contentPane.add(rdbtnRatios);
		
		JRadioButton rdbtnRations = new JRadioButton("Eat Sufficiently");
		rdbtnRations.setBounds(123, 102, 109, 23);
		contentPane.add(rdbtnRations);
		
		JRadioButton rdbtnEatSufficiently = new JRadioButton("Eat Well");
		rdbtnEatSufficiently.setBounds(123, 128, 109, 23);
		contentPane.add(rdbtnEatSufficiently);
		
		JRadioButton rdbtnOverinduldge = new JRadioButton("Overindulge");
		rdbtnOverinduldge.setBounds(123, 154, 109, 23);
		contentPane.add(rdbtnOverinduldge);
		
		JRadioButton radioButton = new JRadioButton("0-25");
		radioButton.setBounds(323, 76, 109, 23);
		contentPane.add(radioButton);
		
		JRadioButton radioButton_1 = new JRadioButton("26-50");
		radioButton_1.setBounds(323, 102, 109, 23);
		contentPane.add(radioButton_1);
		
		JRadioButton radioButton_2 = new JRadioButton("51-75");
		radioButton_2.setBounds(323, 128, 109, 23);
		contentPane.add(radioButton_2);
		
		JRadioButton radioButton_3 = new JRadioButton("76-100");
		radioButton_3.setBounds(323, 154, 109, 23);
		contentPane.add(radioButton_3);
		
		JLabel lblSetRations = new JLabel("Set Rations:");
		lblSetRations.setBounds(73, 60, 109, 14);
		contentPane.add(lblSetRations);
		
		JLabel lblSetPace = new JLabel("Set Pace:");
		lblSetPace.setBounds(284, 60, 109, 14);
		contentPane.add(lblSetPace);
		
		JButton btnCancel = new JButton("Cancel");
		btnCancel.setBounds(285, 282, 89, 23);
		contentPane.add(btnCancel);
		
		JButton btnNext = new JButton("Next");
		btnNext.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseClicked(MouseEvent arg0) {
			}
		});
		btnNext.setBounds(172, 282, 89, 23);
		contentPane.add(btnNext);
	}
}
